package namespace;
import javax.swing.*;
public class drawFunc2 extends JFrame 
{
	public drawFunc2(double tt,double V,int A)
	{
		
		setTitle("Third graphics");
		setSize(1000,600);
		double n=0.155555;// naturalne, tobto>=0
		double v=V; //0<v<60
		double t=tt;//-10<t<10
		int a=A;//naturalne, tobto>=0
		//V 0<v<60   T -10<t<10  A naturalne, tobto>=0
	    //JFrame f2= new JFrame("3gr");
		//f2.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		//f2.setSize(1000, 600);
	    Function2 func2=new Function2(v,t,a);
	    func2.func();
	    DrawAxis2 axis2 = new DrawAxis2(func2.xArray(),func2.yArray(),func2.len());
	    add(axis2);
	    
		//f2.setVisible(true); 
	}
}
